package com.nageoffer.jobtrain.projects.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nageoffer.jobtrain.projects.dao.entity.ContestDO;
import com.nageoffer.jobtrain.projects.dto.resp.ContestPageRespDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 竞赛管理数据持久层
 * author：唐晨
 */
public interface ContestMapper extends BaseMapper<ContestDO> {
    List<ContestPageRespDTO> contestPageList(@Param("title") String title,
                                             @Param("beginTime") String beginTime,
                                             @Param("endTime") String endTime,
                                             @Param("type") Integer type,
                                             Page<ContestPageRespDTO> page);
}